<?php defined('BASEPATH') or exit('No direct script access allowed');

class Module_Country extends Module {

	public $version = 1.1;

	public function info()
	{
		return array(
			'name' => array(
				'vi' => 'Born Country list',
				'en' => 'Born Country list'
			),
			'description' => array(
				'nl' => 'Born Country Management',
				'en' => 'Born Country Management'
				),
			'frontend' => TRUE,
			'backend' => TRUE,
			'skip_xss'	=> TRUE,
			'menu'		=> 'content',
		    'shortcuts' => array(
				array(
				    'name' => 'escort_country_create_title',
				    'uri' => 'admin/country/create',
				    'class' => 'add'
				),
			),
		);
	}

	public function install()
	{
		return $this->db->query("
					CREATE  TABLE IF NOT EXISTS ".$this->db->dbprefix('escort_born_countries')." (
						`id` INT NOT NULL AUTO_INCREMENT ,
  						`name` VARCHAR(255) NULL ,
  						`image` VARCHAR(255) NULL ,
  						`status` INT(11) NULL,
  						`created_time` VARCHAR(45) NULL ,
					  PRIMARY KEY (`id`)
					) ENGINE=InnoDB DEFAULT CHARSET=utf8
				");
	}

	public function uninstall()
	{
		return TRUE;
	}

	public function upgrade($old_version)
	{
		// Your Upgrade Logic
		return TRUE;
	}

	public function help()
	{
		// Return a string containing help info
		// You could include a file and return it here.
		return "This module has no inline docs as it does not have a back-end.";
	}
}
/* End of file details.php */